package com.hotelManagerSystem.service.impl;

import com.hotelManagerSystem.model.DepartmentStaff;
import com.hotelManagerSystem.mapper.DepartmentStaffMapper;
import com.hotelManagerSystem.service.IDepartmentStaffService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author treasy
 * @since 2021-12-22
 */
@Service
public class DepartmentStaffServiceImpl extends ServiceImpl<DepartmentStaffMapper, DepartmentStaff> implements IDepartmentStaffService {
    @Autowired
    DepartmentStaffMapper departmentStaffMapper;

    @Override
    public boolean updateDepartmentIdByStaffId(DepartmentStaff departmentStaff) {
        return departmentStaffMapper.updateDepartmentIdByStaffId(departmentStaff);
    }
}

